<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Gray发布系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <link rel="stylesheet" href="/static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/css/swiper.min.css">
    <script type="text/javascript" src="/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/static/js/swiper.jquery.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
</head>
<body>
<!-- 中部开始 -->
<div class="wrapper">
    <!-- 右侧主体开始 -->
    <div class="page-content">
        <div class="content" style="min-height:  auto">
            <!-- 右侧内容框架，更改从这里开始 -->
            <div class="layui-form">
                <div class="layui-form-item">

                    <div class="layui-inline">
                        <label for="git_addr" class="layui-form-label">
                            <span class="x-red">*</span>GIT地址
                        </label>
                        <div class="layui-input-inline" style="width: 500px">
                            <input type="text" id="git_addr" name="git_addr" required="" lay-verify="project_name"
                                   autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">构建方式</label>
                        <div class="layui-input-inline">
                            <select name="build_way" id="build_way" lay-verify="required">
                                <option value="">请选择构建方式</option>
                                <optgroup label="git源码构建">
                                    <option value="git源码构建">Git</option>
                                </optgroup>
                                <optgroup label="docker构建">
                                    <option value="Dockerfile构建">Dockerfile文件</option>
                                </optgroup>
                            </select>
                        </div>

                        <label class="layui-form-label">项目语言</label>
                        <div class="layui-input-inline">
                            <select name="project_lan" id="project_lan" lay-verify="required" >
                                <option value="1">Java</option>
                                <option value="2">Python</option>
                                <option value="3">Go</option>
                            </select>
                        </div>

                    </div>

                    <div class="layui-inline">
                        <label for="project_name" class="layui-form-label">
                            <span class="x-red">*</span>项目名
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="project_name" name="project_name" required="" lay-verify="project_name"
                                   autocomplete="off" class="layui-input">
                        </div>

                        <label for="log_path" class="layui-form-label">
                            <span class="x-red">*</span>日志地址
                        </label>
                        <div class="layui-input-inline">
                            <input type="text" id="log_path" name="log_path" required="" lay-verify="log_path"
                                   autocomplete="off" class="layui-input">
                        </div>

                    </div>

                    <div class="layui-inline">
                        <label class="layui-form-label">打包方式</label>
                        <div class="layui-input-inline">
                            <select name="install_type" id="install_type" lay-verify="required" >
                                <option value="1">Jar</option>
                                <option value="2">War</option>
                                <option value="3">.py</option>
                                <option value="3">.sh</option>
                                <option value="3">.go</option>
                            </select>
                        </div>

                        <label class="layui-form-label">部署机器</label>
                        <div class="layui-input-inline">
                            <select name="opt_id" id="opt_id" lay-verify="required" >
                                {% for l in list %}
                                    <option value="{{ l.id }}">{{ l.opt_name }}</option>
                                {% endfor %}
                            </select>
                        </div>
                    </div>


                    <div class="layui-form-item layui-form-text" style="width: 610px ">
                        <label class="layui-form-label">项目描述</label>
                        <div class="layui-input-block">
                            <textarea name="project_desc" id="project_desc" placeholder="请输入内容" class="layui-textarea"></textarea>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label for="L_repass" class="layui-form-label">
                        </label>
                        <button class="layui-btn" lay-filter="add" lay-submit="" id="pro_build">
                            增加
                        </button>
                    </div>
                </div>
            </div>
            <!-- 右侧内容框架，更改从这里结束 -->
        </div>
    </div>
    <!-- 右侧主体结束 -->
</div>
<!-- 中部结束 -->
<script>

</script>
<script type="text/javascript" src="/static/js/form_custom.js"></script>
</body>
</html>